package com.aaa.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ypy
 * @since 2020-07-30
 */
public class Car extends Model<Car> {

    private static final long serialVersionUID = 1L;

    /**
     * 车辆ID
     */
    @TableId(value = "CARID", type = IdType.AUTO)
    private Integer carid;
    /**
     * 车辆类型
     */
    @TableField("CAETYPE")
    private String caetype;
    /**
     * 车辆牌照
     */
    @TableField("NUMPLATE")
    private String numplate;
    /**
     * 车载人数
     */
    @TableField("CARNUMBER")
    private Integer carnumber;
    /**
     * 剩余油量
     */
    @TableField("OILMASS")
    private Integer oilmass;
    /**
     * 车辆状态（1空闲，2使用中，3损坏）
     */
    @TableField("CARSTATE")
    private Integer carstate;
    /**
     * 借车人
     */
    @TableField("USERID")
    private Integer userid;
    /**
     * 损坏程度
     */
    @TableField("DAMAGELEVEL")
    private Integer damagelevel;


    public Integer getCarid() {
        return carid;
    }

    public void setCarid(Integer carid) {
        this.carid = carid;
    }

    public String getCaetype() {
        return caetype;
    }

    public void setCaetype(String caetype) {
        this.caetype = caetype;
    }

    public String getNumplate() {
        return numplate;
    }

    public void setNumplate(String numplate) {
        this.numplate = numplate;
    }

    public Integer getCarnumber() {
        return carnumber;
    }

    public void setCarnumber(Integer carnumber) {
        this.carnumber = carnumber;
    }

    public Integer getOilmass() {
        return oilmass;
    }

    public void setOilmass(Integer oilmass) {
        this.oilmass = oilmass;
    }

    public Integer getCarstate() {
        return carstate;
    }

    public void setCarstate(Integer carstate) {
        this.carstate = carstate;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getDamagelevel() {
        return damagelevel;
    }

    public void setDamagelevel(Integer damagelevel) {
        this.damagelevel = damagelevel;
    }

    @Override
    protected Serializable pkVal() {
        return this.carid;
    }

    @Override
    public String toString() {
        return "Car{" +
        "carid=" + carid +
        ", caetype=" + caetype +
        ", numplate=" + numplate +
        ", carnumber=" + carnumber +
        ", oilmass=" + oilmass +
        ", carstate=" + carstate +
        ", userid=" + userid +
        ", damagelevel=" + damagelevel +
        "}";
    }
}
